package mybatis.test;

import mybatis.MyBatisUtils;
import mybatis.mapper.StudentMapper;
import org.apache.ibatis.session.SqlSession;

public class Delete_student {
    public static void main(String[] args){
        SqlSession sqlSession = MyBatisUtils.getSession();
        StudentMapper studentMapper = sqlSession.getMapper(StudentMapper.class);
        studentMapper.deleteStudent(2);
        sqlSession.commit();
    }
}
